package glass;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;

public class Glass extends JComponent{
	public int val, posx, posy;
	
	
	public Glass(){
		 setSize(280, 240);
		 posx=posy=10;
	}
	
	@Override
	public void paintComponent(Graphics g){
		super.paintComponent(g);
		
		Graphics2D g2d = (Graphics2D)g;
		g2d.setColor(Color.BLUE);
		g2d.fillRect(posx, posy, 10, 10);
		g2d.fillOval(30, 30, 10, 10);
		
		
		
		
		
	}
	
}
